<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/include/header.jsp"%>
<title><s:text name="dataDownload.titleT"/></title>
<link href="<%=request.getContextPath()%>/fare/js/ligerUI/skins/Gray/css/all.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/jsFile/js_new/jquery.1.7.2.js"></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/core/base.js" type="text/javascript"></script>

<link href='<%=request.getContextPath()%>/fare/js/cityquery/cityquery.css' rel="stylesheet" type="text/css" />	
<link rev="stylesheet" media="all" href="<%=request.getContextPath() %>/fare/css/form_style.css" type="text/css" rel="stylesheet">
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/core/base.js" type="text/javascript"></script>

<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerGrid.js"
	type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerToolBar.js"
	type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerResizable.js"
	type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerCheckBox.js"
	type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerDateEditor.js"
	type="text/javascript"></script>
	
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/lib/ligerUI/js/ligerui.min.js"></script>
<script	src="<%=request.getContextPath()%>/fare/lib/jquery/jquery.form.js"	type="text/javascript"></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/cityquery/citylist.js'></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerSpinner.js" 	type="text/javascript"></script>

<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/cityquery/querycity.js'></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/js/datePicker/WdatePicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jsFile/multiblepicker.js"></script>


<!-- 圆角文本框 -->
<link href="<%=request.getContextPath() %>/fare/css/htc/htc.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
//iframe

/* <IFRAME src="ftp://112.124.29.224/webdata/single/2014-04/01/14/" 
			frameBorder=0 width=990 style="width:1024px;height:500px;" 
			scrolling=no height=120 ALLOWTRANSPARENCY="true"> */

$(function(){
	var pageR=document.getElementById("dataDownload.reportTitle").value;
	var url="<%=request.getContextPath() %>"+"/excelInfoAction!returnHtmlIframe.action";
	$.ajax({
		url:url,
		type : "POST",
		cache : false, 
		async : false,
		 dataType:"json",
	    	success:function(data){
				if(data[0].status=='SUCCESS'){
					$("#iframes").append("<iframe src='"+data[1].url+"' frameBorder=0 width=990 style='width:1024px;height:550px;' scrolling=yes height=120 ALLOWTRANSPARENCY='true' onload='this.height=bodyFrame.document.body.scrollHeight+20'></iframe>");
				}else{
					alert(pageR);
				}
	    	},
		    error:function(){ 
		    	alert(pageR);
		    },
	});
	
	
});
function download(id){
	var loginF=document.getElementById("dataDownload.loginF").value;
	var url="<%=request.getContextPath() %>"+"/excelInfoAction!excelDownload.action?id="+id;
	 $.ajax({
			url:url,
			type : "POST",
			cache : false, 
			async : true,
		    dataType:'html',
		    success:function(data){
		    },
		    error:function(){ 
		    	alert(loginF);
		    },
	 });
}
function findExcel(){
	$("#excelForm").attr("action","<%=request.getContextPath()%>/excelInfoAction!findExcel.action");
	 $("#excelForm").submit();
}
function find_fun(code,date){
	var noResources=document.getElmentById("dataDownload.noResources").value;
	var codeId=""+code;
	var url="<%=request.getContextPath() %>"+"/excelInfoAction!isExit.action?codeId="+codeId+"&timeType="+date;
	 $.ajax({
			url:url,
			type : "POST",
			cache : false, 
			async : true,
		    dataType:'html',
		    success:function(data){
		    	if(data=="true"){
		    		window.location="<%=request.getContextPath() %>/excelInfoAction!download.action?codeId="+code+"&timeType="+date;
		    	}
		    	if(data=="false"){
		    		alert(noResources);
		    	}
		    },
		   
	 });
}

</script> 
</head>
<body>
<%-- <jsp:include page="../inc/treelist2.jsp"></jsp:include>
<jsp:include page="../sign/feedback.jsp" ></jsp:include>  --%>
<%@ include file="/include/home/home_header.jsp" %>
	<jsp:include page="/pages/system/feedback/feedback.jsp" ></jsp:include>
<div class="main main_max">
	<div class="sideBar">
		<div class="box">
			<div class="location"><s:text name="share.currentL"/>： <s:text name="share.download"/> &gt;<s:text name="dataDownload.title"/></div>
		</div>
	</div>
	<div class="form_body">
		<div class="main_max">
			<div class="form_table_tltle"><s:text name="dataDownload.source"></s:text></div>
			<div class="form_down">
			<form id="excelForm" action="<%=request.getContextPath()%>/excelInfoAction!findExcel.action" method="post">
			<input type="hidden" id="dataDownload.noResources" value="<s:text name="dataDownload.noResources"/>"/>
			<input type="hidden" id="dataDownload.loginF" value="<s:text name="dataDownload.loginF"/>"/>
			<input type="hidden" id="dataDownload.pageR" value="<s:text name="dataDownload.pageR"/>"/>
			<input type="hidden" id="dataDownload.reportTitle" value="<s:text name="dataDownload.reportTitle"/>"/>
			
			<table width="0" border="0" cellpadding="0" cellspacing="0" class="form_table">
				<tr>
		
				<td><img src="<%=request.getContextPath() %>/images/bg/20000.png"/></td>
				<td><img src="<%=request.getContextPath() %>/images/bg/20001.png"/></td>
				<td><img src="<%=request.getContextPath() %>/images/bg/20002.png"/></td>
				<td><img src="<%=request.getContextPath() %>/images/bg/20003.png"/></td>
				<td><img src="<%=request.getContextPath() %>/images/bg/20004.png"/></td>
				<td><img src="<%=request.getContextPath() %>/images/bg/20005.png"/></td>
				<td><img src="<%=request.getContextPath() %>/images/bg/20006.png"/></td>
				<td><img src="<%=request.getContextPath() %>/images/bg/20007.png"/></td>
				<td><img src="<%=request.getContextPath() %>/images/bg/00001.png"/></td>
				<td><img src="<%=request.getContextPath() %>/images/bg/00002.png"/></td>
				<td><img src="<%=request.getContextPath() %>/images/bg/00003.png"/></td>
				<td><img src="<%=request.getContextPath() %>/images/bg/00004.png"/></td>
				</tr>
				</table>
			</form>
			<div class="form_table_tltle"><s:text name="dataDownload.dataD"></s:text></div>
			<div style="font-size:12px;font-weight:thin;"><s:text name="dataDownload.operationInstr"></s:text>：</br>
				<s:text name="dataDownload.text1"/></br>
				<s:text name="dataDownload.text2"/></br>
				<s:text name="dataDownload.text3"/></br>
				<s:text name="dataDownload.text4"/></br>
				
				<!-- 1、文件夹以年（yyyy）命名第一目录，月（MM）命名第二级目录，日（DD）命名第三级目录，渠道编码命名第四级目录，第四级目录下则是您需要的元航班数据包，包是按每小时生成的，最后面的数字代表小时数。</br>
				2、渠道编码命名对应关系如下：20000(深圳航空)、20001(东方航空)、2002(山东航空)、20003(四川航空)、20004(海南航空)、
			    20005(南方航空)、20006(国际航空)、20007(厦门航空)、20008(阿联遒航空)、00001(淘宝旅行)、00002(去哪儿)、00003(携程)、00004(艺龙)、00005(一起飞)、00006(卡雅卡)</br>
			    3、在渠道同级目录下的"all"目录为所有渠道汇总打包的航班数据。</br>
			    4、打包的元航班数据是文本文件，里面的内容是JSON格式，详细描述请参考开发API文档。 -->
			</div>
			<div clas="iframes" id="iframes"align=center></div>
			
			<!-- <DIV align=center>
			<IFRAME src="ftp://112.124.29.224/webdata/single/2014-04/01/14/" 
			frameBorder=0 width=990 style="width:1024px;height:500px;" 
			scrolling=no height=120 ALLOWTRANSPARENCY="true">
			</IFRAME>
			 </DIV>
			 -->
			<%-- <div class="form_down">
			<c:if test="${not empty listVo }">
				<c:forEach items="${listVo}" var="vo" varStatus="status">
					 <ul class="" onMouseOver="this.className='org'" onMouseOut="this.className='one'">
					 <li class="title">${vo.dateType}</li>
					 <li>
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun(20000,'${vo.dateType}');">深圳航空</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun(20001,'${vo.dateType}');">东方航空</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun(20002,'${vo.dateType}');">山东航空</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun(20003,'${vo.dateType}');">四川航空 </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun(20004,'${vo.dateType}');">海南航空</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun(20005,'${vo.dateType}');">中国南方航空</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun(20006,'${vo.dateType}');">中国国际航空 </a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun(20007,'${vo.dateType}');">厦门航空 </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun('00001','${vo.dateType}');">淘宝旅游网 </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun('00002','${vo.dateType}');">去哪儿网 </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun('00003','${vo.dateType}');">携程网</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 <a href="javascript:void(0)" id="feed_id" onclick="javascript:find_fun('00004','${vo.dateType}');">艺龙网 </a>
					 </li>
					  <li class="but"><a href="<%=request.getContextPath() %>/excelInfoAction!downLoadAll.action?timeType=${vo.dateType}" ><img src="<%=request.getContextPath() %>/images/new/but_12.png"/> </a></li>
					</ul>
				</c:forEach>
			</c:if>
			</div> --%>
			</div>
			</div>
			</div>
			 <%-- <div class="list_page" style="height: 30px;">
 				<jsp:include page="../inc/pageComponent.jsp"></jsp:include>
 			</div> --%>
	</div>
	
<div class="high_10"></div>
 
 <br><br><br><br>
 <div id="b_bottom">
 <%-- <jsp:include page="../inc/footer2.jsp"></jsp:include> --%>
 <%@ include file="/include/home/home_footer.jsp" %> 
 </div>


	
</body>
<script language="javascript">
if (window.parent.length>0){window.parent.document.all.newtest.style.height=document.body.scrollHeight;}
</script>
</html>
